﻿using VideoSeller.Business.Data.Enums;

namespace VideoSeller.Web.Models
{
	public class FilterViewModel : BaseViewModel
	{
		public int? Page { get; set; }

		public int? PageSize { get; set; }

		public string Languages { get; set; }

		public string Categories { get; set; }

		public string Author { get; set; }

		public string Search { get; set; }

		public PriceFilter? PriceFilter { get; set; }

		public ContentListFilterType? FilterType { get; set; }

		public VideoContentType? VideoType { get; set; }

        public int? selectedCountry { get; set; }

		public bool HasSelected
		{
			get
			{
                return !string.IsNullOrEmpty(Languages) || !string.IsNullOrEmpty(Categories) || !string.IsNullOrEmpty(Author) || PriceFilter.HasValue || VideoType.HasValue || selectedCountry.HasValue;
			}
		}
	}
}